<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 提示用户输入用户名
        let username = prompt("请输入用户名:");
        // 文档输出用户名
        document.write("用户名是: " + username);
    </script>
</body>
</html>